﻿// <copyright file="CreatingWPF.cs" company="Microsoft Corporation">
// Copyright (c) 2008 All Right Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2008-10-10</date>
// <summary>Creating WPF form.</summary>

namespace Synergist.WordToXamlLibrary
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    /// <summary>
    /// Creating WPF progress form
    /// </summary>
    public partial class CreatingWpf : Form, IProgress
    {
        /// <summary>
        /// Initializes a new instance of the CreatingWpf class.
        /// </summary>
        /// <param name="steps">number of steps in process</param>
        public CreatingWpf(int steps)
        {
            this.InitializeComponent();

            this.progressBar.Maximum = steps;
        }

        #region IProgress Members

        /// <summary>
        /// Step the progress
        /// </summary>
        /// <param name="statusText">the status text</param>
        public void StepProgress(string statusText)
        {
            this.progressBar.PerformStep();

            this.status.Text = statusText;
        }

        #endregion
    }
}
